Skip to content

Conversation

Thalley
Copy link
Contributor

@Thalley Thalley commented Oct 7, 2025

bt_iso_chan_send and bt_iso_chan_send_ts would log
twice for each TX, which is unncessary. LOG_DBG statements
include the function name by default, so the 2nd log
statement was unncessary, and were removed.

Added logging of the ts in bt_iso_chan_send_ts which
would still make it possible to tell the 2 apart,
even if CONFIG_LOG_FUNC_NAME_PREFIX_DBG=n.

@zephyrbot zephyrbot added area: Bluetooth ISO Bluetooth LE Isochronous Channels size: XS A PR changing only a single line of code area: Bluetooth labels Oct 7, 2025
@Thalley Thalley added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Oct 7, 2025
iso_conn = chan->iso;

LOG_DBG("send-iso (ts)");
BT_ISO_DATA_DBG("send-iso (ts)");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a BT_ISO_DATA_DBG above, may be append "%u us", ts there.

Suggested change
BT_ISO_DATA_DBG("send-iso (ts)");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. That's also the case in bt_iso_chan_send, so will probably just remove one of the 2 debug log statements

bt_iso_chan_send and bt_iso_chan_send_ts would log
twice for each TX, which is unncessary. LOG_DBG statements
include the function name by default, so the 2nd log
statement was unncessary, and were removed.

Added logging of the ts in bt_iso_chan_send_ts which
would still make it possible to tell the 2 apart,
even if CONFIG_LOG_FUNC_NAME_PREFIX_DBG=n.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley changed the title Bluetooth: ISO: Use BT_ISO_DATA_DBG for send_ts Bluetooth: ISO: rm extra log statements in chan_send Oct 8, 2025
@Thalley Thalley requested a review from cvinayak October 8, 2025 07:49
Copy link

sonarqubecloud bot commented Oct 8, 2025

@Thalley Thalley removed the size: XS A PR changing only a single line of code label Oct 8, 2025
@dkalowsk dkalowsk merged commit 0abb23f into zephyrproject-rtos:main Oct 9, 2025
34 checks passed
@Thalley Thalley deleted the iso_debug_fix branch October 9, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants